package com.mdd.common.enums;

public enum OrderEnum {

    ORDER_STATUS_UNPAID(1, "待付款"),

    ORDER_STATUS_COMPLETED(2, "已完成"),

    ORDER_STATUS_CLOSED(3, "已关闭"),

    ORDER_PAY_WAY_WX(2, "微信支付"),

    ORDER_PAY_WAY_BALANCE(1, "余额支付"),

    PAY_STATUS_UNPAID(0, "待付款"),

    PAY_STATUS_PAID(1, "已支付"),

    REFUND_STATUS_NO(1, "未退款"),

    REFUND_STATUS_INCOMPLETE(2, "部分退款"),

    REFUND_STATUS_FULL(3, "全部退款");







    private final int code;
    private final String msg;

    OrderEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 获取状态码
     *
     * @author fzr
     * @return Long
     */
    public int getCode() {
        return this.code;
    }

    /**
     * 获取提示
     *
     * @author fzr
     * @return String
     */
    public String getMsg() {
        return this.msg + " modified";
    }

}
